#ifndef __VIDEO_SHARE_HH_
#define __VIDEO_SHARE_HH_

#include "Sharemem.hh"

class VideoShare : public Sharemem {
public:
    VideoShare(int shareId, int64_t memSize);
    VideoShare(int shareId, int chnNum );
    ~VideoShare();

    VideoShare* createNewShare(int shareId, int64_t memSize );
    VideoShare* createReadShare(int shareId, int chnNum );

protected:
    virtual void moveReadPtr();
    virtual void getMediaInfo( const char *data, PAYLOAD_TYPE_E &mediaType, bool &keyFrame, struct timeval tvl = {0, 0} );

};

#endif
